package com.example.yiwei.crm.view.frament.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.data.GetActivity;
import com.example.yiwei.crm.entity.activityEntity;
import com.example.yiwei.crm.zxing.decoding.FinishListener;

/**
 * Created by Administrator on 2017/4/18.
 */

public class otherFragment extends Fragment {
    private TextView txt_actual_expenses,txt_activity_address,txt_updater,txt_update_time,txt_creater,
            txt_create_time,txt_content;
    activityEntity activityEntity;
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootView=inflater.inflate(R.layout.fragment_detailed_activity_other,container,false);
        txt_activity_address= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_activity_address);
        txt_actual_expenses= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_actual_expenses);
        txt_updater= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_updater);
        txt_update_time= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_update_time);
        txt_creater= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_creater);
        txt_create_time= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_create_time);
        txt_content= (TextView) rootView.findViewById(R.id.fragment_activity_other_txt_content);
        activityEntity= GetActivity.get();
        txt_activity_address.setText(activityEntity.getActivity_address());
        txt_updater.setText(activityEntity.getCurrent_update_user_name());
        txt_update_time.setText(activityEntity.getUpdate_time());
        txt_create_time.setText(activityEntity.getCreate_time());
        txt_creater.setText(activityEntity.getCurrent_create_user_name());
        txt_content.setText(activityEntity.getActivity_description());

        return rootView;
    }
}
